# coding: utf8
#########################################################################
# debugging Default Setting
#########################################################################
# Location                    : models/1_init_session_vars_uc_debugging.py
# Corresponding controller    : controllers/uc_debugging.py
#
# Organization                : TBD
# Author                      : Christopher Steel
# Copyright                   : 2010 Christopher Steel
# Contributors                : NA
# Last Changes                : 2010-02-25
# License                     : MIT
# Description :
#
# 1_init_session_vars_uc_debugging.py sets two session variables, session._uc_debugging_on
# and session._uc_debugging_enabled.
#
# session._uc_debugging_on includes the code for changing the value of
# session._uc_debugging_on via the controller, debugging.py.
#
# session._uc_debugging_enabled is set to 'True' by default at this time
# and is provided as is. As such setting session._uc_debugging_enabled
# to 'False' has no effect at this time.
#
######################
# session._uc_debugging_on
######################
# If I set request.vars._debugging via the controller to 'True' or 'False'
if not session._uc_debugging_on: session._uc_debugging_on = 'True'
# my new setting gets save to session._debugging here.
if request.vars._uc_debugging_on:
    session._uc_debugging_on = request.vars._uc_debugging_on
###########################
# session._uc_debugging_enabled
###########################
#
if not session._uc_debugging_enabled: session._uc_debugging_enabled = 'True'
